import request from "../request.js"
import api from "../apis.js"
// 获取轮播 

export function carouselChartlist(data) {
    return api({
        url: `/tencent/carouselChart/list`,
        method: 'get',
        data
    })
}
// 获取token
export function memberdecodeUserInfo(data) {
    return api({
        url: `/tencent/member/decodeUserInfo`,
        method: 'get',
        data
    })
}
export function realtimeInfopage(data) {
    return api({
        url: `/tencent/realtimeInfo/page`,
        method: 'get',
        data
    })
}
export function realtimeInfodetail(data) {
    return api({
        url: `/tencent/realtimeInfo/detail`,
        method: 'get',
        data
    })
}
export function curriculumpage(data) {
    return api({
        url: `/tencent/curriculum/page`,
        method: 'get',
        data
    })
}
export function curriculumdetail(data) {
    return api({
        url: `/tencent/curriculum/detail`,
        method: 'get',
        data
    })
}
export function memberregister(data) {
    return api({
        url: `/tencent/member/register?openid=${data}`,
        method: 'POST',

    })
}
// 编辑用户信息
export function memberUpdateMemberInfo(data) {
    return request({
        url: `/tencent/member/UpdateMemberInfo`,
        method: 'POST',
        data
    })
}
// 获取用户信息
export function membergetNowMemberInfo(data) {
    return request({
        url: `/tencent/member/getNowMemberInfo`,
        method: 'get',
        data
    })
}
// 新增报名  
export function memberCurriculumadd(data) {
    return request({
        url: `/tencent/memberCurriculum/add`,
        method: 'post',
        data
    })
}
export function memberCurriculumedit(data) {
    return request({
        url: `/tencent/memberCurriculum/edit`,
        method: 'post',
        data
    })
}
export function memberCurriculumdelete(data) {
    return request({
        url: `/tencent/memberCurriculum/delete?id=${data.id}`,
        method: 'post',

    })
}
export function memberCurriculumlist(data) {
    return request({
        url: `/tencent/memberCurriculum/list`,
        method: 'get',
        data
    })
}
// 报名详情
export function memberCurriculumdetail(data) {
    return request({
        url: `/tencent/memberCurriculum/detail`,
        method: 'get',
        data
    })
}
export function aboutpage(data) {
    return api({
        url: `/tencent/about/list`,
        method: 'get',
        data
    })
}
// 订单支付
export function payment(data) {
    return request({
        url: `/tencent/payment`,
        method: 'post',
        data
    })
}
//获取试卷
export function selectexamPaper(data) {
    return api({
        url: `/tencent/examPaper/select`,
        method: 'get',
        data
    })
}

// 试卷提交
export function answerSubmit(data) {
    return request({
        url: `/tencent/examPaperAnswer/answerSubmit`,
        method: 'post',
        data
    })
}
